<taglib name="html"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[系统设置]-[数据库管理]</title>
<load href="__PUBLIC__/Css/admin_style.css"/>
</head>

<body>
<a href="__APP__/admin/syscolumn/index">栏目管理</a>&nbsp;|&nbsp;<a href="__URL__/index/table/{$table}">添加字段</a><hr>
<if condition="empty($field_arr) eq true">对不起，还没有任何字段<else/>
<table border="0" cellspacing="10" cellpadding="0" style="text-align:center">
  <tr>
    <td>字段名称</td>
    <td>字段类型(长度)</td>
    <td>字段描述</td>
    <td>详细页</td>
    <td>list页</td>
    <td>起用状态</td>
    <td>顺序</td>
    <td>操作</td>
  </tr>
  <volist name="field_arr" id="vo">
    <tr>
    <td>{$vo.field_name}</td>
    <td>{$vo.field_type}({$vo.field_length})</td>
    <td>{$vo.field_comment}</td>
    <td><if condition="$vo['field_isdetail'] eq true"><a href="__URL__/setup/type/field_isdetail/table/{$table}/field/{$vo.field_name}">√</a><else/><a href="__URL__/setup/type/field_isdetail/table/{$table}/field/{$vo.field_name}">×</a></if></td>
    <td><if condition="$vo['field_islist'] eq true"><a href="__URL__/setup/type/field_islist/table/{$table}/field/{$vo.field_name}">√</a><else/><a href="__URL__/setup/type/field_islist/table/{$table}/field/{$vo.field_name}">×</a></if></td>
    <td><if condition="$vo['field_isuse'] eq true"><a href="__URL__/setup/type/field_isuse/table/{$table}/field/{$vo.field_name}">√</a><else/><a href="__URL__/setup/type/field_isuse/table/{$table}/field/{$vo.field_name}">×</a></if></td>
     <td><if condition="$vo.sequence lt $maxseq"><a href="__URL__/up/id/{$vo.id}/table/{$table}">↑</a></if>&nbsp;<if condition="$vo.sequence gt $minseq"><a href="__URL__/down/id/{$vo.id}/table/{$table}">↓</a></if></td>
    <td><a href="__URL__/edit/table/{$table}/field/{$vo.field_name}">修改</a>&nbsp;|&nbsp;<a href="__URL__/delete/table/{$table}/field/{$vo.field_name}">删除</a>&nbsp;|&nbsp;<a href="__URL__/copyfield/table/{$table}/field/{$vo.field_name}">复制</a></td>
  </tr>
  </volist>
</table>
</if>
<table border="0" cellspacing="0" cellpadding="5" style="margin-top:20px">
<form name="form1" method="post" action="__URL__/update/table/{$table}/field/{$field}">
  <tr>
    <td colspan="6"><div align="center">修改字段</div></td>
    </tr>
  <tr>
    <td>字段名称：</td>
    <td><input type="text" name="field_name" id="field_name" value="{$f_arr.field_name}"></td>
    <td>字段类型：</td>
    <td>
    <html:select options="field_type" id="field_type" name="field_type" selected="f_arr['field_type']"/>     </td>
    <td>字段长度：</td>
    <td><input type="text" name="field_length" id="field_length" value="{$f_arr.field_length}"></td>
  </tr>
  <tr>
    <td>字段描述(数据库，表单标签)：</td>
    <td><input type="text" name="field_comment" id="field_comment" value="{$f_arr.field_comment}"></td>
    <td>输出框：</td>
    <td>
    <html:select options="field_output_type" id="field_output_type" name="field_output_type" selected="f_arr['field_output_type']"/>
    </select>    </td>
    <td>输出框长度：</td>
    <td><input type="text" name="field_output_length" id="field_output_length" value="{$f_arr.field_output_length}"></td>
  </tr>
  <tr>
    <td>注意事项(表单右侧)：</td>
    <td><input type="text" name="field_notice" id="field_notice" value="{$f_arr.field_notice}"></td>
    <td>字段填充类型：</td>
    <td>
    <html:select options="field_value_fill_type" id="field_value_fill_type" name="field_value_fill_type" selected="f_arr['field_value_fill_type']"/>  </td>
    <td>字段填充：</td>
    <td><input type="text" name="field_value_fill" id="field_value_fill" value="{$f_arr.field_value_fill}"></td>
  </tr>
  <tr>
    <td>字段默认值：</td>
    <td><input type="text" name="field_default_value" id="field_default_value" value="{$f_arr.field_default_value}"></td>
    <td colspan="4">是否起用：
      <if condition="$f_arr['field_isuse'] eq 1">
        <input name="field_isuse" type="checkbox" id="field_isuse" value="1" checked> 
        <else/>
        <input name="field_isuse" type="checkbox" id="field_isuse" value="1" > 
        </if>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 是否详细：
      <if condition="$f_arr['field_isdetail'] eq 1">
        <input name="field_isdetail" type="checkbox" id="field_isdetail" value="1" checked>
        <else/>
        <input name="field_isdetail" type="checkbox" id="field_isdetail" value="1" >
        </if> 
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 是否list：
      <if condition="$f_arr['field_islist'] eq 1">
        <input name="field_islist" type="checkbox" id="field_islist" value="1" checked>
        <else/>
        <input name="field_islist" type="checkbox" id="field_islist" value="1">
      </if>      </td>
    </tr>
    <tr >
    <td>所属分组：</td>
    <td><html:select options="sg_list" id="field_group_id" name="field_group_id" selected="f_arr['field_group_id']"/></td>
    <td colspan="4">显示字数：
      <input type="text" name="field_index_size" id="field_index_size" value="{$f_arr.field_index_size}">
      index页面使用
   </td>
    </tr>
    <tr>
    <td colspan="6">是否要生成缩略图： 
    <if condition="$f_arr['is_thumb'] eq 1">
      <input type="checkbox" name="is_thumb" id="is_thumb" value="1" checked >
      <else/>
      <input type="checkbox" name="is_thumb" id="is_thumb" value="1">
    </if> 缩略图宽度：
    <input type="text" name="thumb_w" id="thumb_w" value="{$f_arr.thumb_w}">缩略图高度：
    <input type="text" name="thumb_h" id="thumb_h" value="{$f_arr.thumb_h}"> 缩略图标志：
      <input name="thumb_label" type="text" id="thumb_label" size="10" value="{$f_arr.thumb_label}">
      类型： <html:select options="thumb_type" id="thumb_type" name="thumb_type" selected="f_arr['thumb_type']"/> </td>
    </tr>
    <tr>
    <td colspan="6">是否要打水印：
      <if condition="$f_arr['is_wm'] eq 1">
      <input type="checkbox" name="is_wm" id="is_wm" value="1" checked >
      <else/>
      <input type="checkbox" name="is_wm" id="is_wm" value="1">
     </if>
      水印类型：
      <html:select options="wm_type" id="wm_type" name="wm_type" selected="f_arr['wm_type']"/> 
      水印位置：
     <html:select options="wm_pos" id="wm_pos" name="wm_pos" selected="f_arr['wm_pos']"/> 
      </td>
    </tr>
  <tr>
    <td colspan="6"><div align="center">
      <input type="submit" name="button" id="button" value="修  改" onClick="submit();this.disabled=true">
      <input type="reset" name="button2" id="button2" value="返  回">
    </div></td>
    </tr>
    <input type="hidden" name="id" id="id" value="{$f_arr.id}">
  </form>
</table>

</body>
</html>
